package com.sk.bilibili.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sk.bilibili.bean.DailyReward;
import com.sk.bilibili.other.R;
import com.sk.bilibili.service.DailyRewardService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
* @author 邵康
* @date 2021/12/04 18:30
*/
@Api(tags = "每日奖励相关")
@CrossOrigin
@RestController
@RequestMapping("/dailyReward")
public class DailyRewardController {

    @Autowired
    private DailyRewardService dailyRewardService;

    @ApiOperation("获取当前用户的经验奖励信息")
    @GetMapping("/getDailyReward")
    public R<DailyReward> getDailyReward(){
        return dailyRewardService.getDailyReward();
    }

}
